/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cuadroanotacion.start;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.plaf.synth.SynthLookAndFeel;
import org.cuadroanotacionapi.beans.Jos_fastball_player;
import org.cuadroanotacionapi.controller.Jos_fastball_playerController;


/**
 *
 * @author avbravo
 */
public class Start {

    public static void main(String[] args) {

        /*
         * Leer la version 
         */
//        Properties props = new Properties();
//        String myversion = "0.0";
//        try {
//            props.load(new FileInputStream("versiones.properties"));
//            myversion = props.getProperty("version");
//        } catch (IOException ex) {
//           // Mensajeria.MensajeError(ex, "Leyendo archivo propiedades()");
//        }
//        if (myversion == null) {
//            //el archivo no existe o no tiene la propiedad sesion
//            myversion = "0.0";
//        } else {
//        }
//
//        SesionLocal.setVersion(myversion);

        try {

            for (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(laf.getName())) {
                    UIManager.setLookAndFeel(laf.getClassName());
                    SynthLookAndFeel.setStyleFactory(
                            new MySynthStyleFactory(SynthLookAndFeel.getStyleFactory()));
                    break;
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
       
       
//      
        MenuForm menuForm = new MenuForm();
        //   menuForm.setLocationRelativeTo(null);
        menuForm.setVisible(true);
//MenuMain menuMain = new MenuMain();
//menuMain.setVisible(true);
    }
}
